﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EasyStep.Attributes;
using EasyStep.TestExecution.Data;
using EasyStep.TestExecution.Interfaces;
using OpenQA.Selenium;
using Microsoft.VisualStudio.TestTools.UnitTesting;



namespace EasyStep.TestActions.Actions
{
    [TestAction(typeof(AssertAction), Name = "ByTextFalse", RequireData = true, RequireLocator = false)]
    class AssertByTextFalse : ITestAction<IWebDriver>
    {
        public void Execute(IWebDriver browser, TestStepResult data, IExecuteDataContext context)
        {
            Assert.IsFalse(browser.PageSource.Contains(data.Data));
        }
    }
}